package cn.edu.xmu.orderpayment.order.model.bo;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class OrderItem {
    private Long id;
    private Long orderId;
    private Long shopId;
    private Long productId;
    private Long onsaleId;
    private Long quantity;
    private Long price;
    private Long discountPrice;
    private Long point;
    private String name;
    private Long couponActivityId;
    private Long couponId;
    private Byte commented;
    private Long creatorId;
    private String creatorName;
    private Long modifierBy;
    private String modifierName;
    private LocalDateTime gmtCreate;
    private LocalDateTime gmtModified;

    public void init(){
        this.price=0L;
        this.discountPrice=0L;
        this.point=0L;
        this.commented=0;
    }

}
